import sys
import getopt
from os.path import dirname, join

sys.path.append(join(dirname(__file__), '/home/yh/work/pymmseg-cpp'))

import mmseg



mmseg.dict_load_defaults()


algor = mmseg.Algorithm(sys.stdin.read())
first = True
for tk in algor:
        if not first:
                    sys.stdout.write(separator)
                        first = False
                            sys.stdout.write(tk.text)

